﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace NetMonitor
{
    public class GlobalAttrib
    {
        public static bool IsRunning = false;
        public static string IniPath = Application.StartupPath + @"\Setting.ini";
        public static string LogFile = Application.StartupPath + @"\logs\" + DateTime.Now.ToShortDateString().Replace("/", "").Replace("-", "") + ".log";
        public static string WindowState = "Normal";

        public static string TargetIP = "";
        public static int InterVal = 5;
        public static int Timeout = 1;
        public static int Time = 1;
        public static int Count = 5;
        public static int Response = 5;
        public static int ResTime = 150;
        public static bool IsAutoRun = false;
        public static bool IsAutoMonitor = false;

        public static string AlarmType = ""; //空为不报警，1为弹窗，2为邮件，3为短信。多个以|隔开
        public static bool AlarmMessgeBox = false;
        public static bool AlarmEmail = false;
        public static bool AlarmSMS = false;
        //Email
        public static string Smtp = "";
        public static string SmtpPort = "";
        public static string EmailID = "";
        public static string EmailPass = "";
        public static string EmailFrom = "";
        public static string EmailTo = ""; //多个地址已;隔开
        //短信
        public static string API = "";
        public static string UserName = "";
        public static string Password = "";
        public static string MobliePhone = "";
        //Error
        public static string Error = "";
    }
}
